From ebfe8b47b366092457df7a7f631c8f746e8455fd Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Tue, 17 Oct 2023 14:05:39 +0300 Subject: [PATCH] CMakeLists: set no-dangling-pointer As long complete callback will have a stack allocated pointer, uqmi need to have --Wno-dangling-pointer. Signed-off-by: Alexander Couzens --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7af35d7..377a3d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ PROJECT(uqmi C) OPTION(BUILD_STATIC OFF) -ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-enum-conversion) +ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-enum-conversion -Wno-dangling-pointer) SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") -- 2.30.2